@model IEnumerable<lucienneCRMApp.Models.Person>
         
@{
    ViewBag.Title = "Register a new person";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
         <th></th>
        <th>
          Person ID
        </th>
        <th>
            Name
        </th>
        <th>
            Surname
        </th>
         <th>
            emailAdd
        </th>
        <th>
          Password
        </th>
        <th>
          Staff Type
        </th>
       
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.PersonId }) |
            @Html.ActionLink("Details", "Details", new { id=item.PersonId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.PersonId })
        </td>
        <td>
         @* @item.PersonId*@
         @Html.DisplayFor(modelItem => item.PersonId)
        </td>
        <td>
			@Html.DisplayFor(modelItem => item.PersonName)
        </td>
        <td>
			@Html.DisplayFor(modelItem => item.PersonSurname)
        </td>
        <td>
			@Html.DisplayFor(modelItem => item.emailAdd)
        </td>
        <td>
           @Html.DisplayFor(modelItem => item.password)         
        </td>
        <td>
          @Html.DisplayFor(modelItem => item.StaffType)
          </td>
    </tr>
}

</table>


